package com.jiawa.train.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiawa.train.business.domain.po.DailyTrainTicket;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 余票信息 Mapper 接口
 * </p>
 *
 * @author hrz
 * @since 2025-09-07
 */
public interface DailyTrainTicketMapper extends BaseMapper<DailyTrainTicket> {

    void updateStorage(
                        @Param("date") Date date,
                        @Param("trainCode") String trainCode,
                        @Param("seatType") String seatType,
                        @Param("minStartIndex") Integer minStartIndex,
                        @Param("maxEndIndex") Integer maxEndIndex,
                        @Param("minEndIndex") Integer minEndIndex,
                        @Param("maxStartIndex") Integer maxStartIndex);
}
